Skip to content

Merge https://github.com/velero-io/velero:v1.18.3-rc.1 (6e8f61c) into oadp-1.6 - #551

Merged
openshift-merge-bot[bot] merged 152 commits into
openshift:oadp-1.6from
oadp-rebasebot:rebase-bot-oadp-1.6
Sep 1, 2026
Merged

Merge https://github.com/velero-io/velero:v1.18.3-rc.1 (6e8f61c) into oadp-1.6#551
openshift-merge-bot[bot] merged 152 commits into
openshift:oadp-1.6from
oadp-rebasebot:rebase-bot-oadp-1.6

Conversation

@oadp-rebasebot-app

@oadp-rebasebot-app oadp-rebasebot-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

This is an automated rebase PR generated by RebaseBot.

Summary

  • Source: https://github.com/velero-io/velero:v1.18.3-rc.1
  • Destination: https://github.com/openshift/velero:oadp-1.6
  • 78 new upstream commits

⚠️ Possible upstream content loss

`f065319` UPSTREAM: : Updating go modules

go.mod

replace github.com/kopia/kopia => github.com/project-velero/kopia v0.0.0-20251230033609-d946b1e75197
toolchain go1.26.7
`e147103` UPSTREAM: : Normalize Go version in Dockerfiles

Dockerfile

FROM --platform=$BUILDPLATFORM golang:1.26.7-trixie AS restic-builder
FROM --platform=$BUILDPLATFORM golang:1.26.7-trixie AS velero-builder

Dockerfile-Windows

FROM --platform=$BUILDPLATFORM golang:1.26.7-trixie AS velero-builder

hack/build-image/Dockerfile

FROM --platform=$TARGETPLATFORM golang:1.26.7-trixie
`4ff6f32` UPSTREAM: : Updating go modules

go.sum

github.com/project-velero/kopia v0.0.0-20251230033609-d946b1e75197 h1:iGkfuELGvFCqW+zcrhf2GsOwNH1nWYBsC69IOc57KJk=
github.com/project-velero/kopia v0.0.0-20251230033609-d946b1e75197/go.mod h1:RL4KehCNKEIDNltN7oruSa3ldwBNVPmQbwmN3Schbjc=
go.opentelemetry.io/otel v1.43.0 h1:mYIM03dnh5zfN7HautFE4ieIig9amkNANT+xcVxAj9I=
go.opentelemetry.io/otel v1.43.0/go.mod h1:JuG+u74mvjvcm8vj8pI5XiHy1zDeoCS2LB1spIq7Ay0=
go.opentelemetry.io/otel/metric v1.43.0 h1:d7638QeInOnuwOONPp4JAOGfbCEpYb+K6DVWvdxGzgM=
go.opentelemetry.io/otel/metric v1.43.0/go.mod h1:RDnPtIxvqlgO8GRW18W6Z/4P462ldprJtfxHxyKd2PY=
go.opentelemetry.io/otel/sdk v1.43.0 h1:pi5mE86i5rTeLXqoF/hhiBtUNcrAGHLKQdhg4h4V9Dg=
go.opentelemetry.io/otel/sdk v1.43.0/go.mod h1:P+IkVU3iWukmiit/Yf9AWvpyRDlUeBaRg6Y+C58QHzg=
go.opentelemetry.io/otel/sdk/metric v1.43.0 h1:S88dyqXjJkuBNLeMcVPRFXpRw2fuwdvfCGLEo89fDkw=
go.opentelemetry.io/otel/sdk/metric v1.43.0/go.mod h1:C/RJtwSEJ5hzTiUz5pXF1kILHStzb9zFlIEe85bhj6A=
go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09nk+3A=
go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0=
google.golang.org/genproto/googleapis/api v0.0.0-20260414002931-afd174a4e478 h1:yQugLulqltosq0B/f8l4w9VryjV+N/5gcW0jQ3N8Qec=
google.golang.org/genproto/googleapis/api v0.0.0-20260414002931-afd174a4e478/go.mod h1:C6ADNqOxbgdUUeRTU+LCHDPB9ttAMCTff6auwCVa4uc=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260523011958-0a33c5d7ca68 h1:PvEgGJf9C/1u5CHkInMg7UFYYUoiaQmW2LbtH0pjB78=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260523011958-0a33c5d7ca68/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=
google.golang.org/grpc v1.82.1 h1:NnAxzGRA0677vCa4BUkOAnO5+FfQqVl9iUXeD0IqcGE=
google.golang.org/grpc v1.82.1/go.mod h1:yzTZ1TB1Z3SG+LIYaI+WiE8D5+PZ3ArnrSp8zF3+/ZA=

go.mod

go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.43.0 // indirect
go.opentelemetry.io/otel/sdk v1.43.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.43.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260414002931-afd174a4e478 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260523011958-0a33c5d7ca68 // indirect
replace github.com/kopia/kopia => github.com/project-velero/kopia v0.0.0-20251230033609-d946b1e75197
toolchain go1.26.7

* Replace github.com/robfig/cron/v3 by github.com/netresearch/go-cron

Replace k8s.io/utils/pointer with k8s.io/utils/ptr

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>

* Replace gopkg.in/yaml.v3 by go.yaml.in/yaml/v3

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>

* Replace github.com/joho/godotenv.

Move the needed code into Velero repository.

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>

* Replace github.com/pkg/errors by github.com/cockroachdb/errors

Change errors.Cause to errors.Is, because github.com/cockroachdb/errors
New() function create a error with error stack with depth 1, but
github.com/pkg/errors's New() function create error with no depth.

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>

---------

Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 445c3d32-0789-483c-bb4e-fbed7566e00a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 14, 2026
@openshift-ci

openshift-ci Bot commented Jul 14, 2026

Copy link
Copy Markdown

Hi @oadp-rebasebot-app[bot]. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 14, 2026
shubham-pampattiwar and others added 20 commits July 14, 2026 09:27
* Fix PodVolumeBackup metadata loss on fs-backup timeout

When a backup hits the fs-backup timeout, WaitAllPodVolumesProcessed
returned nil because PVBs were only collected from the indexer in the
done branch of the select. This discarded all PVB metadata including
already-completed PVBs, making their data unrestorable.

Move the PVB collection loop to run after the select so tracked PVBs
are always persisted regardless of timeout.

Fixes velero-io#9986

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>

* Add changelog for PR velero-io#9995

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>

* Filter non-completed PVBs in hasPodVolumeBackup

After preserving tracked PVBs on timeout, non-completed PVBs (in-progress
or with no snapshot ID) would cause hasPodVolumeBackup to return true,
leading the restore to skip the original PV and dynamically re-provision
it without any data to restore from.

Only match PVBs that are Completed with a valid SnapshotID.

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>

* Add unit tests for hasPodVolumeBackup phase filtering

Verify that hasPodVolumeBackup only matches PVBs that are Completed
with a valid SnapshotID, and rejects in-progress, failed, or
empty-snapshot PVBs.

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>

---------

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
(cherry picked from commit e593ba7)
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
…k-9995-release-1.18

[release-1.18] Fix PodVolumeBackup metadata loss on fs-backup timeout
Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
…design

backup filter enhancement design

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-filters-interface

extend backup resource policy

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…_incompatibility_validation

validate incompatiblity with legacy filters

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-filter-policy-validation

Add validations for ClusterScopedFilterPolicy

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…ter-policies-validation

Add validations for NamespacedFilterPolicies

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-core

implemented fine-grained backup filter policies

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-cli

cli support for fine-grained filter policies

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…r-lookup

caching the call for GetNamespaceFilter

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…backup-filters-for-1.18

Fine grained backup filters for 1.18
Signed-off-by: chlins <chlins.zhang@gmail.com>
Add the design for global volume policies to address the requirement in
 velero-io#9858

Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
Signed-off-by: chlins <chlins.zhang@gmail.com>
* restore filter enhancement

enhance restore filter with resource policies, introduce resource
policies with fine-grained control for resources in restore, both
cluster scoped resources and namespace scoped resources, with
labels, names include/exclude support with glob patterns.

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>

* address review comments

- Add introductory sentence linking to the Phase 1 backup filters PR.
- Add clarification that a backup's ConfigMap may not exist on the
  target cluster because it might be on a different Velero instance.
- Remove redundant explanations about backup-specific concepts
  (volume policies, include/exclude policies).
- Remove the non-goal regarding restore-side `includeExcludePolicy`.
- Remove the "Interaction with Backup-Side Filters" section.
- Remove "Step 5" from the design, as additional items requested by
  plugins should intentionally bypass fine-grained filter checks
  (consistent with backup side Stage 2).

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>

* address more review comments

- remove confusion rows regarding per-namespace kind list
- simplified CLI output to configmap name only

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>

---------

Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
Joeavaikath and others added 8 commits September 1, 2026 17:02
…l format

Upstream velero switched golangci-lint installation from the curl-based
installer to `go install` in the v1.18.2-rc.2 cycle. The version
extraction regex in Makefile.prow only matched the old curl pattern,
causing an empty version string and a checksum verification failure in CI.

Update the extraction to handle both the old `curl | sh` format and the
new `go install ... @vX.Y.Z` format. For v2+, use `go install` directly;
for v1.x, fall back to the curl installer.

Closes openshift#519

Signed-off-by: Joseph Vaikath <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph Vaikath <jvaikath@redhat.com>
Signed-off-by: Joseph <jvaikath@redhat.com>
@oadp-rebasebot-app oadp-rebasebot-app Bot changed the title Merge https://github.com/velero-io/velero:v1.18.2-rc.2 (c253c7f) into oadp-1.6 Merge https://github.com/velero-io/velero:v1.18.3-rc.1 (6e8f61c) into oadp-1.6 Sep 1, 2026
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 1, 2026
Joeavaikath added a commit that referenced this pull request Sep 1, 2026
The .golangci.yml config uses perfsprint.concat-loop which requires
golangci-lint >= v2.6.0. v2.5.0 rejects the config at schema validation.
Matches the bump already applied in PR #551.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@Joeavaikath

Copy link
Copy Markdown

/hold for #568

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 1, 2026
Joeavaikath and others added 2 commits September 1, 2026 11:27
The pr-changelog-check workflow is an upstream velero-io/velero
workflow. Add the same repository guard that oadp-dev carries so
the job is skipped on openshift/velero PRs targeting oadp-1.6.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Add `if: github.repository == 'velero-io/velero'` guards to all
workflows that oadp-dev already gates but oadp-1.6 was missing:
- auto_assign_prs.yml (add-reviews job)
- auto_label_prs.yml (triage job)
- pr-codespell.yml (codespell job)
- prow-action.yml (execute job)
- rebase.yml (rebase job)
- stale-issues.yml (stale job)

These workflows are upstream velero-io/velero concerns and should
not run on openshift/velero PRs.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@Joeavaikath

Copy link
Copy Markdown

/unhold

@openshift-ci openshift-ci Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 1, 2026
push-builder.yml only runs on velero-io/velero main, so builder
images are never published for release branches. Any PR to oadp-1.6
(or velero release-1.18) that has a Dockerfile change in history
will fail to pull the image. Gate the check to the only context
where the builder image is guaranteed to exist.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci

openshift-ci Bot commented Sep 1, 2026

Copy link
Copy Markdown

@oadp-rebasebot-app[bot]: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@sseago

sseago commented Sep 1, 2026

Copy link
Copy Markdown

/lgtm

@openshift-ci

openshift-ci Bot commented Sep 1, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Joeavaikath, oadp-rebasebot-app[bot], sseago, weshayutin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 1, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit 2561b5f into openshift:oadp-1.6 Sep 1, 2026
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.